// ist8310_wrapper.h

#ifndef IST8310_WRAPPER_H
#define IST8310_WRAPPER_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

// C接口
I2CDevice* create_i2c_device(const char* device);
void destroy_i2c_device(I2CDevice* device);
IST8310* create_ist8310(I2CDevice* device);
void destroy_ist8310(IST8310* sensor);
void ist8310_get_mag_vector(IST8310* sensor, int16_t* x, int16_t* y, int16_t* z);
int16_t ist8310_get_temperature(IST8310* sensor);

#ifdef __cplusplus}
#endif

#endif // IST8310_WRAPPER_H
